package com.dongdongshop.em;
//枚举类
public enum ResultEnum {
    SUCCESS(10000,"操作成功"),
    ERROR(10001,"操作失败"),
    NOAUTH(10002,"没有权限"),
    PARAMETER_EXCEPTION(10003,"参数异常"),
    NOTID(10004,"账号未注册"),
    PASSWORD_ERROR(10005,"密码错误"),
    EXAMIN(10006,"审核未通过"),
    HASID(10007,"该登录名已被别人注册"),
    HASCODE(10008,"请先发送验证码"),
    CODE(10009,"验证码错误"),
    NOLOGIN(10010,"未登录"),
    SALEOVER(10020,"商品已售罄！"),
    PURCHASE(10030,"秒杀商品一个用户只能购买一次！");


    private Integer index;
    private String name;

    ResultEnum(Integer index, String name) {
        this.index = index;
        this.name = name;
    }

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
